package cn.com.git.workflow.dao;

import cn.com.git.workflow.dao.model.WorkFlowConfig;
import cn.com.git.workflow.service.query.WorkFlowConfigListQuery;

import java.util.List;

/**
  * WorkFlowConfigDAO接口
  * @author zhangzhenfu
  * @Description
  * @date 2020/4/12
*/
public interface WorkFlowConfigDAO {

    WorkFlowConfig selectById(Integer id);

    WorkFlowConfig selectOne(WorkFlowConfigListQuery query);

    int countLimit(WorkFlowConfigListQuery query);

    List<WorkFlowConfig> selectList(WorkFlowConfigListQuery query);

    Integer insertOne(WorkFlowConfig record);

    List<WorkFlowConfig> insertList(List<WorkFlowConfig> list);

    Integer updateOne(WorkFlowConfig record);

    Integer updateLimit(WorkFlowConfig record, WorkFlowConfigListQuery query);

    Integer deleteOne(Integer id);

    Integer deleteLimit(WorkFlowConfigListQuery query);
}